def my_sqrt(x):
    """牛顿迭代法求解方程的根"""
    if x < 0:
        return
    a = x
    while a * a - x >= 0.1:
        a = (a + x / a) / 2
    return int(a)
